<?php use_helper('Object', 'Validation', 'ObjectAdmin', 'I18N', 'Date') ?>
<title>WMS—<?= $sf_response->getTitle() ?></title>
<?php use_stylesheet('/sf/sf_admin/css/main') ?>
<style type="text/css">
<!--
.style1 {
	font-size: 30px;
	font-weight: bold;
}
.style2 {font-size: 18px; font-weight: bold; }
-->
</style>
<p align="center" class="style1">TALLY IN (PHI&#7870;U NH&#7852;P KHO)</p>
<p align="center" class="style2">No: <?echo $tallyin->getTallyincode()?></p>
<table width="100%" border="0">
  <tr>
    <td width="7%">PO:</td>
    <td width="93%"><? echo isset($po) ? $po->getPono(): '&nbsp;' ?></td>
  </tr>
  <tr>
    <td>Date:</td>
    <td><? echo isset($po) ? date('Y-m-d', strtotime($po->getCreatedAt())): '&nbsp;' ?></td>
  </tr>
  <tr>
    <td>Supplier:</td>
    <td><? echo isset($po) ? $po->getSupplier(): '&nbsp;' ?></td>
  </tr>
  <tr>
    <td>Doc.ref:</td>
    <td><? echo isset($DOno) ? $DOno: '&nbsp;' ?></td>
  </tr>
</table>
<table width="100%" border="1" cellpadding="0" cellspacing="0">
  <tr>
    <td><strong>No</strong></td>
    <td><strong>Sev Code </strong></td>
    <td><strong>Description</strong></td>
    <td><strong>Unit</strong></td>
    <td><strong>Brand</strong></td>
    <td><strong>Qty</strong></td>
    <td><strong>Project</strong></td>
    <td><strong>Remark</strong></td>
  </tr>
<? foreach( $compsList as $key=>$comps) {
    $comp = ComponentPeer::retrieveByPK($comps->getComponentId());
    //$comp = new Component();
?>
  <tr>
    <td><?echo $key+1?></td>
    <td><?echo $comp->getProductcode()?></td>
    <td><?echo $comp->getDescription()?></td>
    <td><?echo $comp->getComponentUnit()?></td>
    <td><?echo $comp->getBrand()? $comp->getBrand(): '&nbsp;' ?></td>
    <td><?echo $comps->getQty1()?></td>
    <td><? echo isset($projectname) ? $projectname: '&nbsp;' ?></td>
    <td>&nbsp;</td>
  </tr>
<?}?>
</table>
<table width="100%" border="0">
  <tr>
    <td width="29%"><p>Approved by</p>
    <p>(Duy&#7879;t) </p></td>
    <td width="48%"><p>Warehouse keeper</p>
    <p>(Th&#7911; kho) </p></td>
    <td width="23%"><p>Deliverer</p>
    <p>(Ng&#432;&#7901;i giao) </p></td>
  </tr>
</table>
<?exit()?>